package sctu.edu.java.year2016.team07.nieying.practice.Review;

import java.util.Scanner;

/**
 * Created by Administrator on 2016/6/15 0015.
 */
public class VariableExchange {
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入变量的值");
        long A=scan.nextLong();
        System.out.println("请输入变量B的值");
        long B=scan.nextLong();
        System.out.println("A="+A+"\tB="+B);
        System.out.println("执行的变量互换。。。");
        A=A^B;
        B=B^A;
        A=A^B;
        System.out.println("A="+A+"\tB="+B);
    }
}
